package com.omronservice.utils;

public enum ResultStatusCode {
    OK(200, "OK"),

    INVALID_PASSWORD(10001, "User name or password is incorrect"),

    EMAIL_NOT_FOUND(10002, "邮箱不存在"),

    KEYNOTFOUND(10004,"邮箱不存在"),

    KEYTIME(10005,"超时"),

    INVALID_TOKEN(401, "Invalid token"),

    ISEMAILEXIST(10003,"该邮箱已注册"),

    ISNOEXIST(503,"该编号不存在"),

    ISINDEXEXIST(504,"排序已存在"),

    PASSWORDERROR(505,"密码错误"),

    ISEXIST(501,"该名称已存在"),

    STATUS_NOT_CALL_BACK(10006,"比赛状态不能回退"),

    HAS_ENTERED_MATCH(10007,"已参加比赛"),

    BOARD_NOT_EXIST(10008,"冲浪板不存在"),

    STATUS_NOT(10009,"停业"),

    CODE_ERROR(10010,"验证码错误"),

    NAME_HAS(10011,"用户名重复"),
    BOARD_IS_USE(10012,"冲浪板已经被绑定"),
    NAME_DOUBLE(10013,"该名称已存在"),
    JETBOARD_STATUS_ERROR(10014,"冲浪板状态不对"),
    USER_NAME_DOUBLE(10015,"用户名存在"),
    GOODS_INDEX_DOUBLE(10016,"序号重复");



    private int resultCode;
    private String resultMessage;
    public static final String SUCCESS = "1";

    ResultStatusCode(int resultCode, String resultMessage) {
        this.resultCode = resultCode;
        this.resultMessage = resultMessage;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }
}
